lab mysql select Marco#16
Open
marcoayora wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
Open
Conversation
|
Marco, Tienes varias cosillas a mejorar en este lab, no te voy a mentir 🙃 Hay consultas con syntax que no es propia de SQL, hay otras en las que no muestras los resultados que te pide el enunciado. Te dejo algunas cosillas, yo le echaría un ojo al lab!
SELECT COUNT(rating) AS rating_count FROM film
WHERE rating = "PG-13";
A por las queries de hoooooy 🫠 |
Author
|
si gracias , este finde lo reviso
El mar, 31 oct 2023 a las 13:30, Bego ***@***.***>) escribió:
… Marco,
Tienes varias cosillas a mejorar en este lab, no te voy a mentir 🙃 Hay
consultas con syntax que no es propia de SQL, hay otras en las que no
muestras los resultados que te pide el enunciado. Te dejo algunas cosillas,
yo le echaría un ojo al lab!
- 1 - te falta el DISTINCT, sino estás contando todos los apellidos,
independientemente de que se repitan o no.
- 2 - Idem que el 1.
- 3 - COUNT(rating ="PG-13") no es una syntax válida en sql.
SELECT COUNT(rating) AS rating_count FROM film
WHERE rating = "PG-13";
- 6 - Estás devolviendo únicamente el mes y el día. Estaría bien
devolver más columnas para tener contexto sobre tu consulta.
A por las queries de hoooooy 🫠
[image: image]
<https://user-images.githubusercontent.com/72032823/279365242-d070513d-8de5-44ab-9ad6-553af7d8c544.png>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCV3LIRZBOFB4P47A62SY2DYCDVPHAVCNFSM6AAAAAA6P3U6T6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBXGEZDOMBSGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.